<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../引入vue2.js"></script>
</head>

<body>
    <div id="app">
        <button @click="click">click</button>
        <ul>
            <li v-for="item in list" :key="item">
                {{item}}
            </li>
        </ul>
    </div>
</body>
<script>
    let vm = new Vue({
        el: '#app',
        data: {
            list: ['剑圣', '兽王', '冰女']
        },
        methods: {
            click() {
                this.list = ['剑圣', '白虎', '兽王', '冰女']
            }
        },
    })
</script>

</html>